//logs.js
const util = require('../../utils/util.js')
var WxParse = require('../../static/wxParse/wxParse.js');
Page({
  data: {
      tab: 'cy',
      "title":"【与里弗君一起晨读】重塑语音，解放听力",
      "img_url":"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1530806900213&di=9c70bc5cdfa7240c100a55d9276bca64&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01c6d8577270370000012e7e30d877.jpg%401280w_1l_2o_100sh.jpg",
      "created_at":"2018-07-05 12:09:00",
      "join_in_count":"510",
      "daka_count":"5148",
      "daka_user_list":[
          {
              "id":"1",
              "photo_url":"http://file.zoomyoung.cn/tmp/timg.jpg",
              "nickname":"简茴",
              "data_time":"2018-07-03 12:10:00"
          },
          {
              "id":"2",
              "photo_url":"http://file.zoomyoung.cn/tmp/timg.jpg",
              "nickname":"简茴",
              "data_time":"2018-07-03 12:10:00"
          }
      ],
      "content":"<p>这里是活动详情的内容</p>",
      "has_clock":"是否打卡，0未打卡，1打卡了",
      "discussList":  [{
          "id":1,
          "nickname":"刘兰兰",
          "msg_time":"1小时前",
          "photo_url": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531408684&di=fdfe56cd90af0405a046a6e0a4b7ad81&imgtype=jpg&er=1&src=http%3A%2F%2Fimg4q.duitang.com%2Fuploads%2Fitem%2F201503%2F22%2F20150322100452_ezcWW.jpeg",
          "msg_content":"这里是评论的内容内容内容内容这里是评论的内容内容内容内容这里是评论的内容内容内容内容这里是评论的内容内容内容内容",
          "like_list":[
              {
                  "id":1,
                  "nickname":"守望者"
              },
              {
                  "id":"2",
                  "nickname":"简回"
              }
          ],
          "comment_list":[
              {
                  "id":1,
                  "nickname":"守望者",
                  "content":"棒！"
              },
              {
                  "id":2,
                  "nickname":"守望者",
                  "content":"棒！"
              },
              {
                  "id":3,
                  "nickname":"守望者",
                  "content":"棒adsfasdfasdfsadfasdfsdf防守打法！"
              }
          ],
          "keep_day":"3"
      },
      {
          "id":1,
          "nickname":"刘兰兰",
          "msg_time":"1小时前",
          "photo_url": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531408684&di=fdfe56cd90af0405a046a6e0a4b7ad81&imgtype=jpg&er=1&src=http%3A%2F%2Fimg4q.duitang.com%2Fuploads%2Fitem%2F201503%2F22%2F20150322100452_ezcWW.jpeg",
          "msg_content":"这里是评论的内容内容内容内容这里是评论的内容内容内容内容这里是评论的内容内容内容内容这里是评论的内容内容内容内容",
          "like_list":[
              {
                  "id":1,
                  "nickname":"守望者"
              },
              {
                  "id":"2",
                  "nickname":"简回"
              }
          ],
          "comment_list":[
              {
                  "id":1,
                  "nickname":"守望者",
                  "content":"棒！"
              },
              {
                  "id":2,
                  "nickname":"守望者",
                  "content":"棒！"
              },
              {
                  "id":3,
                  "nickname":"守望者",
                  "content":"棒adsfasdfasdfsadfasdfsdf防守打法！"
              }
          ],
          "keep_day":"3"
      }]
  },
  onLoad: function () {
      WxParse.wxParse('article', 'html', this.data.content, this, 5);
  },
  tltabClick: function () {
      this.setData({ tab: 'tl' })
  },
  xqtabClick: function () {
      this.setData({ tab: 'xq' })
  },
  cytabClick: function () {
      this.setData({ tab: 'cy' })
  }
})
